<?php echo $this->render('user/head.phtml');?>
<script>
  $(function(){
  $("#day_of_birth").datepicker({'dateFormat':'yy-mm-dd', 'changeYear':true, 'yearRange':'1960:2010'});
  });
</script>
<a href="/user/profile">编辑</a>
<table id='table_profile' class="user_table left">
  <?php $session = new Zend_Session_Namespace('account'); ?>
  <?php if (isset($session->user) && $session->user->get("username")!=''){?>
  <tr><td class="td_desc">用户名：</td><td><?php echo $session->user->get("username"); ?></td></tr>
  <?php }?> 
  <?php if (isset($session->user) && $session->user->get("email")!=''){?>
  <tr><td class="td_desc">电子邮箱：</td><td><?php echo $session->user->get("email");?></td></tr>
  <?php } ?> 
  <tr><td class="td_desc">姓名：</td><td><?php echo $session->user->get('realname');?></td></tr>
  <tr>
    <td class="td_desc">性别：</td>
    <td>
      <?php print Application_Model_User::$GENDER[$session->user->get("gender_id")];?> 
    </td>
  </tr>
  <tr><td class="td_desc">出生日期：</td>
    <td>
      <?php echo $session->user->get('day_of_birth');?>
    </td>
  </tr>
  <tr>
    <td></td><td>入学年份</td><td>大学</td><td>专业</td>
  </tr>
  <tr>
    <td class="td_desc">就读大学：</td>
    <td>
      <?php print $session->user->get('college_entrance_year');?>
    </td>
    <td>
      <?php print $this->user["college_name"];?>
    </td>
    <td>
      <?php print $this->user['school_name'];?>       
    </td>
  </tr>
  <tr>
    <td class="td_desc">创建时间：</td>
    <td><?php echo $session->user->get('ts_created');?></td>
  </tr>
  <tr>
    <td class="td_desc">财富：</td>
    <td><?php printf("%.2f", $session->user->get('wealth'));?>￥</td>
  </tr>
  <tr>
    <td class="td_desc">自我介绍：
    </td>
    <td colspan='4'>
      <?php echo $session->user->get('signature');?>
    </td>
  </tr>
</table>
<?php echo $this->render('user/foot.phtml');?>
